package com.cci.kangdao.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.mybatis.spring.annotation.MapperScan;

@MapperScan
public interface SSHasEngineTypeDao {

    /**
     * 通过服务商Id作废授权记录
     *
     * @param serviceStationId 服务商Id
     */
    @Update("update SSHasEngineType_T set Flag = -1 where ServiceStationID = #{serviceStationId} and CompanyID = #{companyId}")
    void deleteSSHasEngineTypeByServiceStationId(@Param(value = "serviceStationId") Long serviceStationId, @Param(value = "companyId") Long companyId);

}